package com.bgIntlgn.client.entity.sells;

import java.util.Date;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 参考价格
 * 
 * @author yuhui
 * 
 */

@Table(name = "base_prices", constrain = "")
public class BasePrice implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('base_prices_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = "primary key ")
	private Long id;

	/**
	 * 创建日期
	 */
	@Field(name = "create_date", type = "date", constrain = "")
	private Date createDate;

	/**
	 * 指向一个具体版本
	 */
	@Field(name = "uid", type = "char(80)", constrain = " not null references element_subversions(uid) on update cascade ")
	private String uid;

	/**
	 * 报价
	 */
	@Field(name = "price", type = "float ", constrain = " not null default 0.0")
	private Double price;

	/**
	 * 备注
	 */
	@Field(name = "comment", type = "varchar(1000)", constrain = "")
	private String comment;

	
	public Long getId() {
		return this.id;
	}

	
	public void setId(Long id) {
		this.id = id;
	}

	
	public Date getCreateDate() {
		return this.createDate;
	}

	
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	
	public String getUid() {
		return this.uid;
	}

	
	public void setUid(String uid) {
		this.uid = uid;
	}

	
	public Double getPrice() {
		return this.price;
	}

	
	public void setPrice(Double price) {
		this.price = price;
	}

	
	public String getComment() {
		return this.comment;
	}

	
	public void setComment(String comment) {
		this.comment = comment;
	}
	
}
